<template>
  <div class="header-search">
    <div class="header-bar">
      <form action="/" class="header-bar-form">
        <span><i class="iconfont">&#xe61c;</i></span>
        <input type="search" placeholder="搜索你想要的商品" autofocus />
      </form>
      <div class="header-bar-cart">
        <i class="iconfont">&#xe60a;</i>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'HeaderSearch'
}
</script>

<style lang="less" scoped>
@font-face {
  font-family: 'iconfont'; /* Project id 2626983 */
  src: url('//at.alicdn.com/t/font_2626983_5u68mejemi7.woff2?t=1624608942860')
      format('woff2'),
    url('//at.alicdn.com/t/font_2626983_5u68mejemi7.woff?t=1624608942860')
      format('woff'),
    url('//at.alicdn.com/t/font_2626983_5u68mejemi7.ttf?t=1624608942860')
      format('truetype');
}
.iconfont {
  font-family: 'iconfont' !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-text-stroke-width: 0.2px;
  -moz-osx-font-smoothing: grayscale;
}
.header-bar {
  width: 100%;
  height: 90px;
  background: rgb(253, 237, 0);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  &-form {
    width: 84%;
    height: 60px;
    border-radius: 8px;
    background: #fff;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    span {
      display: block;
      width: 40px;
      height: 40px;
      line-height: 40px;
      text-align: center;
    }
    input {
      width: 90%;
      height: 44px;
      border: none;
      outline: none;
      background: none;
      border-radius: 6px;
      font-size: 12px;
      padding-left: 16px;
    }
  }
  &-cart {
    width: 10%;
    text-align: center;
  }
  i {
    color: rgba(255, 8, 8, 0.378);
    font-size: 20px;
  }
}
</style>
